package com.xaaef.k8sdemo.consumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "k8s-provider", url = "${feign.client.provider:http://127.0.0.1:18831}", fallbackFactory = FeignProviderFallback.class)
public interface FeignProviderService {

    @GetMapping("hello")
    String hello(@RequestParam("name") String name);

}
